/* 整体布局 [start] */
html,
body {
    min-height: 100vh;
}

body {
    padding-bottom: 58px;
}

#main {
    min-height: 100vh;
    background-color: #eef4f6;
}

#main .content {
    height: 100%;
}
/* 整体布局 [end] */

/* 头部区域 [start] */
#main .content .head {
    height: 60px;
}

/* 医生姓名、患者姓名 [start] */
#main .content .head .doctor-info,
#main .content .head .patient-info {
    float: left;
    /* width: 33%; */
    height: 100%;
}

#main .content .head .doctor-info .image,
#main .content .head .patient-info .image {
    float: left;
}

#main .content .head .doctor-info .image .text,
#main .content .head .patient-info .image .text {
    text-align: center;
    font-weight: 700;
    font-size: 16px;
}

#main .content .head .doctor-info .image img,
#main .content .head .patient-info .image img {
    height: 30px;
    margin-top: 5px;
}

#main .content .head .doctor-info .id,
#main .content .head .patient-info .id {
    float: left;
    margin-left: 5px;
}

#main .content .head .doctor-info .id .text,
#main .content .head .patient-info .id .text {
    font-size: 16px;
    text-align: center;
    font-weight: 700;
}

#main .content .head .doctor-info .id .name,
#main .content .head .patient-info .id .name {
    margin-top: 5px;
    font-size: 14px;
    text-align: center;
    line-height: 30px;
}
/* 医生姓名、患者姓名 [end] */

/* 患者姓名 [start] */
#main .content .head .patient-info {
    float: left;
    /* width: 33%; */
    /* height: 100%; */
}
/* 患者姓名 [end] */

/* 头部区域的操作按钮组 [start] */
#main .content .addButtonGroup {
    position: relative;
    /* float: left;
    width: 33%; */
    /* height: 100%; */
}

#main .content .addButtonGroup button {
    box-sizing: border-box;
    position: relative;
    right: 0;
    display: block;
    height: 27px;
    padding: 4px 8px;
    padding-right: 20px;
    border-radius: 4px;
    border-width: 0;
    background-color: #a4dcee;
    font-size: 16px;
    cursor: pointer;
    outline: none;
    width: 50%;
    float: right;
}

#main .content .addButtonGroup button:hover {
    background-color: #9e9eff;
}

#main .content .addButtonGroup button svg {
    position: absolute;
    top: 6px;
    right: 3px;
    width: 15px;
    height: 15px;
}

#main .content .addButtonGroup button svg path {
    fill: #4874cb;
}

#main .content .addButtonGroup #select_patient {
    margin-top: 10px;
}

/* 头部区域适配 */
@media screen and (min-width: 576px) {
    #main .content .head {
        height: 100px;
        border-bottom: 1px solid #e8e5e5;
        padding-bottom: 10px;
    }

    #main .content .head .doctor-info .image .text,
    #main .content .head .patient-info .image .text {
        font-size: 18px;
    }

    #main .content .head .doctor-info .image img,
    #main .content .head .patient-info .image img {
        height: 50px;
        margin-top: 5px;
    }

    #main .content .head .doctor-info .id,
    #main .content .head .patient-info .id {
        margin-left: 20px;
    }

    #main .content .head .doctor-info .id .text,
    #main .content .head .patient-info .id .text {
        font-size: 18px;
    }

    #main .content .head .doctor-info .id .name,
    #main .content .head .patient-info .id .name {
        font-size: 16px;
        line-height: 50px;
    }

    #main .content .head .action-btn-group button {
        left: 50%;
        right: auto;
        height: 40px;
        margin-left: -65px;
        padding: 8px 20px;
        padding-right: 38px;
        border-radius: 4px;
        font-size: 18px;
    }

    #main .content .addButtonGroup button svg {
        top: 6px;
        right: 10px;
        width: 18px;
        height: 18px;
    }

    #main .content .addButtonGroup #select-patient {
        top: 0;
    }

    #main .content .addButtonGroup #add-patient {
        top: 50px;
    }
}

/* 头部区域的操作按钮组 [end] */

/* 头部区域 [start] */

/*中间区域开始 */
#main .content .medium{
    margin-top: 3%;
}


#main .content .medium .diagnosis{
    margin-top: 2%;
}





/* 模型和预警*/

#main .content .medium .model_container .model_info{
    margin-top: 20px;
    background: #e8f5fa;
}
#main .content .medium .model_container .model_info .model_and_war{
    height: 50px;
}
#main .content .medium .model_container .model_info .model_and_war .model,
#main .content .medium .model_container .model_info .model_and_war .warm {
    float: left;
    min-width: 40%;
    height: 40px;
    border: 1px solid #bfd3d7;
    border-radius: 4px;
    font-size: 16px;
    line-height: 40px;
    text-align: center;
}
#main .content .medium .model_container .model_info .model_and_war .warmBtn {
  float: left;
  width: 40%;
  height: 40px;
  /* border: 1px solid #bfd3d7; */
  border-radius: 4px;
  font-size: 16px;
  line-height: 40px;
  text-align: center;
}
#main .content .medium .model_container .model_info .model_and_war .warm {
    box-sizing: border-box;
    margin-left: 30px;
    font-size: 16px;
    color: red;
}

#main .content .medium .model_container .model_info .current,
#main .content .medium .model_container .model_info .future{
    width: 100%;
    padding: 10px;
    color: #3535a0;
    position: relative;
    display: inline-block;
}
#main .content .medium .model_container .model_info .current span,
#main .content .medium .model_container .model_info .future span{
    padding-left: 8px;
    color: #ce1c1c;
}
#main .content .medium .model_container .model_info .current::after,
#main .content .medium .model_container .model_info .future::after {
    content: '';
    position: absolute;
    bottom: 0;  /* 下划线距离文字底部的位置 */
    left: -10px; /* 向左扩展 */
    width: 90%; /* 下划线宽度为文字宽度 */
    height: 1px;  /* 下划线的粗细 */
    background-color: #9c7676;  /* 下划线的颜色 */
}

#main .content .medium .model_container .AI_judgment{
    margin-top: 14px;
    border: 1px solid #808080;
    border-radius: 20px;
    text-align: center;
    background: #e6e6d6;
}
#main .content .medium .model_container .AI_judgment .text h2{
    font-size: 20px;
    font-weight: 600;
}

#main .content .medium .model_container .AI_judgment .text p {
    margin: 0;
    line-height: 22px;
}

#main .content .medium .model_container .AI_judgment .text p:nth-of-type(1) {
    font-size: 16px;
    color: #ff0000ff;
}

#main .content .medium .model_container .AI_judgment .text p:nth-of-type(2) {
    font-size: 14px;
    color: #dd0000;
}

#main .content .medium .model_container .AI_judgment .text p:nth-of-type(n + 3) {
    font-size: 12px;
    color: #550000;
}

/* 诊断反馈*/
#main .content .medium .diagnosis {
    margin-top: 4%;
}
#main .content .medium .diagnosis p{
    font-size: 20px;
    text-align: center;
    font-weight: 700;
}

#main .content .medium .diagnosis .range{
    position: relative;
    height: 29px;
    padding-left: 10px;
    padding-right: 148px;
    border: 1px solid #cccccc;
    border-radius: 8px;
}

#main .content .medium .diagnosis .range .progress-bar {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}

#main .content .medium .diagnosis .range .progress-bar .progress {
    position: absolute;
    top: 11px;
    left: 0;
    z-index: 3;
    width: 0;
    height: 7px;
    border-radius: 4px;
    background-color: #4874cb;
}

#main .content .medium .diagnosis .range .progress-bar input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    z-index: 2;
    width: 100%;
    height: 7px;
    margin: 11px 0;
    border-radius: 4px;
    background-color: #aac1ea;
    outline: none;
}

#main .content .medium .diagnosis .range .progress-bar input::-webkit-slider-thumb {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
    z-index: 4;
    width: 16px;
    height: 16px;
    border-radius: 16px;
    background-color: #4874cb;
    cursor: pointer;
}

#main .content .medium .diagnosis .range #diagnosis-feedback-progress-text{
    position: absolute;
    right: 88px;
    top: 0;
    height: 100%;
    width: 32px;
    padding: 0 8px 0 8px;
    border-width: 0;
    outline: none;
    font-size: 16px;
    line-height: 29px;
    border-left: 1px solid #cccccc;
}
#main .content .medium .diagnosis .range label{
    position: absolute;
    top: 0;
    right: 49px;
    width: 18px;
    height: 100%;
    padding: 0 10px;
    border-left: 1px solid #cccccc;
    line-height: 29px;
    text-align: center;
}
#main .content .medium .diagnosis .range button {
    position: absolute;
    top: 0;
    right: 0;
    padding: 4px 8px;
    border-width: 0;
    border-left: 1px solid #cccccc;
    border-radius: 0 4px 4px 0;
    background-color: #a4dcee;
    font-size: 16px;
    cursor: pointer;
}

#main .content .medium .diagnosis .range button:hover {
    background-color: #9e9eff;
}

#main .content .medium .diagnosis .diagnosis-list {
    margin: 15px 0 0 0;
    padding: 0;
}

#main .content .medium .diagnosis .diagnosis-list .item {
    position: relative;
    padding: 10px 10px 10px 10px;
    border: 1px solid #cccccc;
    border-top-width: 0;
    list-style: none;
}

#main .content .medium .diagnosis .diagnosis-list .item:first-child {
    border-top-width: 1px;
}

#main .content .medium .diagnosis .diagnosis-list .item .text {
}

#main .content .medium .diagnosis .diagnosis-list .item input {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0;
    border-width: 0;
    font-size: 14px;
}

/* 当前治疗方案*/
#main .content .medium .treatment{
    margin-top: 2%;
}
#main .content .medium .treatment .text{
    float: left;
    margin-left: 4px;
    height: 40px;
    width: 200px;
    border: 1px solid #808080;
    border-radius: 6px;
    background: #d4e1f1;
    text-align: center;
    font-size: 20px;
    line-height: 40px;
}
#main .content .medium .treatment .submit-btn{
    float: right;
    height: 40px;
    width: 100px;
    margin-right: 20px;
    font-size: 20px;
    margin-top: 4px;
    background: #d4e1f1;
}
#main .content .medium .treatment .submit-btn:hover{
    background-color: #9e9eff;
}

/* 治疗方案 */
#main .content .medium .treatment-plan h2 {
    font-size: 20px;
    text-align: center;
}

#main .content .medium .treatment-plan .medicine div:nth-of-type(n + 2) {
    margin-top: 10px;
}

#main .content .medium .treatment-plan .medicine .pill,
#main .content .medium .treatment-plan .medicine .count,
#main .content .medium .treatment-plan .medicine .diluted-solution {
    position: relative;
    height: 28px;
    padding-left: 52px;
    border: 1px solid #cccccc;
    border-radius: 4px;
}

#main .content .medium .treatment-plan .medicine .pill #medicine-name-list {
    box-sizing: border-box;
    position: absolute;
    top: 28px;
    z-index: 999;
    overflow: auto;
    width: calc(100% - 52px);
    height: 50vh;
    margin: 0;
    padding: 0;
    border: 1px solid #cccccc;
    background-color: #e0eef3;
    box-shadow: 0 4px 4px 1px #8db4c2;
    font-size: 14px;
}

#main .content .medium .treatment-plan .medicine .pill #medicine-name-list .item {
    padding: 8px 10px;
    border-bottom: 1px solid #cccccc;
    cursor: pointer;
    list-style: none;
}

#main .content .medium .treatment-plan .medicine .pill #medicine-name-list .item:hover {
    background-color: #abd3e2;
}

#main .content .medium .treatment-plan .medicine .pill #medicine-name-list .item .red {
    color: red;
}

#main .content .medium .treatment-plan .medicine .pill label,
#main .content .medium .treatment-plan .medicine .count label,
#main .content .medium .treatment-plan .medicine .diluted-solution .left,
#main .content .medium .treatment-plan .medicine .diluted-solution .right {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 0 10px;
    font-size: 16px;
    line-height: 28px;
}

#main .content .medium .treatment-plan .medicine .diluted-solution .right {
    left: auto;
    right: 0;
}

#main .content .medium .treatment-plan .medicine .pill input,
#main .content .medium .treatment-plan .medicine .count input,
#main .content .medium .treatment-plan .medicine .diluted-solution select,
#main .content .medium .treatment-plan .medicine .diluted-solution input {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 10px;
    border-width: 0;
    border-left: 1px solid #cccccc;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
    outline: none;
}

#main .content .medium .treatment-plan .medicine .count select {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 10px;
    border-width: 0;
    border-left: 1px solid #cccccc;
    border-radius: 0 4px 4px 0;
    background-color: #eef4f6;
    font-size: 16px;
    line-height: 28px;
    cursor: pointer;
    outline: none;
}

#main .content .medium .treatment-plan .medicine .diluted-solution {
    padding-left: 116px;
    padding-right: 40px;
}

#main .content .medium .treatment-plan .medicine .diluted-solution select {
    float: left;
    width: 70%;
    border-left: 1px solid #cccccc;
    border-right: 1px solid #cccccc;
    border-radius: 0;
}

#main .content .medium .treatment-plan .medicine .diluted-solution input {
    float: left;
    width: 30%;
    border-left-width: 0;
    border-right: 1px solid #cccccc;
    border-radius: 0;
}

#main .content .medium .treatment-plan .medicine button {
    display: block;
    margin: 10px auto;
    padding: 6px 22px;
    border-width: 0;
    border-radius: 4px;
    background-color: #a4dcee;
    font-size: 18px;
    cursor: pointer;
}

#main .content .medium .treatment-plan .medicine button:hover {
    background-color: #9e9eff;
}

/* 展示治疗方案 */
#main .content .medium .treatment-plan .previewer {
    margin: 20px 0 0 0;
    padding: 0;
}

#main .content .medium .treatment-plan .previewer .item {
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px 10px 10px 20px;
    border-radius: 10px;
    box-shadow: 0 0 6px 1px rgb(171 221 228);
    list-style: none;
}

#main .content .medium .treatment-plan .previewer .item .medicine,
#main .content .medium .treatment-plan .previewer .item .diluted-solution {
    height: 28px;
    font-size: 16px;
}

#main .content .medium .treatment-plan .previewer .item .medicine .text,
#main .content .medium .treatment-plan .previewer .item .diluted-solution .text {
    float: left;
    line-height: 28px;
}

#main .content .medium .treatment-plan .previewer .item .medicine .dosage,
#main .content .medium .treatment-plan .previewer .item .diluted-solution .dosage {
    float: left;
    margin-left: 10px;
    margin-top: 0;
    line-height: 28px;
}

#main .content .medium .treatment-plan .previewer .item input {
    display: block;
    width: 100%;
    height: 28px;
    padding: 0;
    border-width: 0;
    font-size: 16px;
    color: #000000;
}

/* 中间结束*/

/*底部开始 */
#main .bottom-area {
    margin: 20px 0;
}

#main .bottom-area .left,
#main .bottom-area .right {
    box-sizing: border-box;
    float: left;
    width: 50%;
    text-align: center;
}

#main .bottom-area .left label,
#main .bottom-area .right label {
    font-size: 16px;
}

#main .bottom-area .left button,
#main .bottom-area .right button {
    padding: 6px 12px;
    border-width: 0;
    border-radius: 4px;
    background-color: #a4dcee;
    font-size: 16px;
    cursor: pointer;
}

#main .bottom-area .left button:hover,
#main .bottom-area .right button:hover {
    background-color: #9e9eff;
}

/* 页脚 */

#footer {
    display: flex;
    justify-content: space-around;
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 999;
    width: 100%;
    padding: 15px 0;
    border-top: 1px solid #ccc;
    background-color: #eef4f6;
    max-height: 60px;
}

#footer a {
    display: block;
    padding: 2px 4px;
    border-radius: 4px;
    background-color: #a4dcee;
    font-size: 14px;
    box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.3);
    color: #0000ee;
    text-decoration: none;
    cursor: pointer;
}

#footer a:hover,
#footer a.active {
    background-color: #9e9eff;
}

@media screen and (min-width: 576px) {
    body {
        padding-bottom: 81px;
    }

    #main .content .medium .model_container:after {
        content: "";
        display: block;
        height: 0;
        clear: both;
        visibility: hidden;
    }

    #main .content .medium .model_container .model_info {
        float: left;
        width: 50%;
    }

    #main .content .medium .model_container .AI_judgment {
        box-sizing: border-box;
        float: left;
        width: 50%;
    }

    #main .content .medium .treatment-plan .medicine .pill {
        box-sizing: border-box;
        float: left;
        width: 60%;
        height: 32px;
        border-radius: 4px 0 0 4px;
    }

    #main .content .medium .treatment-plan .medicine .pill label,
    #main .content .medium .treatment-plan .medicine .count label,
    #main .content .medium .treatment-plan .medicine .diluted-solution .left,
    #main .content .medium .treatment-plan .medicine .diluted-solution .right {
        line-height: 30px;
    }

    #main .content .medium .treatment-plan .medicine .pill input {
        border-radius: 0;
    }

    #main .content .medium .treatment-plan .medicine .count {
        box-sizing: border-box;
        float: left;
        width: 40%;
        height: 32px;
        margin-top: 0!important;
        border-left-width: 0;
        border-radius: 0 4px 4px 0;
    }

    #main .content .medium .treatment-plan .medicine .diluted-solution {
        box-sizing: border-box;
        float: left;
        width: 100%;
        height: 32px;
        margin-bottom: 20px;
    }

    #main .bottom-area {
        margin: 30px 0;
    }

    #main .bottom-area .left label,
    #main .bottom-area .right label {
        font-size: 18px;
    }

    #main .bottom-area .left button,
    #main .bottom-area .right button {
        margin-left: 10px;
        padding: 8px 20px;
        font-size: 18px;
    }

    #footer {
        padding: 20px 0;
    }

    #footer a {
        padding: 8px 20px;
        font-size: 18px;
    }
}

@media screen and (min-width: 768px) {
    #main .content .medium .treatment-plan .previewer:after {
        content: "";
        display: block;
        height: 0;
        clear: both;
        visibility: hidden;
    }

    #main .content .medium .treatment-plan .previewer .item {
        float: left;
        width: calc(50% - 7px);
        margin-bottom: 14px;
    }

    #main .content .medium .treatment-plan .previewer .item:nth-child(2n + 1) {
        margin-right: 14px;
    }
}


@media screen and (min-width: 1001px) {
    #footer {
        left: 50%;
        width: 1000px;
        margin-left: -500px;
    }
}

.AIsubButton{
  position: relative;
}
.AIsubButton .spinner-grow{
  height: 10px;
  width: 10px;
  position: absolute;
  top:-5px;
  right: -5px;
}
.AIsubButton span.red{
  background: red;
}
.AIsubButton span.yellow{
  background: yellow;
}
.AIsubButton span.no{
  display: none;
  background: none;
}